package com.bestdreamer.design.principle.dependenceinversion;

public class Test {

    /*
    // version 1.0
    public static void main(String[] args) {
        Course course = new Course();
        course.studyJavaCourse();
        course.studyFECourse();
        course.studyPythonCourse();
    }
     */
    /*
    //version 2.0
    public static void main(String[] args) {
        Course course = new Course();
        course.studyImoocCourse(new JavaCourse());
        course.studyImoocCourse(new FECourse());
    }

     */

    /*
    // version 3.0
    public static void main(String[] args){
        Course course = new Course(new JavaCourse());
        course.studyImoocCourse();
    }

     */

    // version 4.0
    public static void main(String[] args) {
        Course course = new Course();
        course.setiCourse(new JavaCourse());
        course.studyImoocCourse();

        course.setiCourse(new FECourse());
        course.studyImoocCourse();
    }
}
